package com.ruoyi.amuse.comments.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 评论管理对象 post_comments
 * 
 * @author juwujie
 * @date 2024-07-19
 */
public class PostComments extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论唯一编号 */
    @Excel(name = "评论唯一编号")
    private Long commentId;

    /** 帖子编号 */
    @Excel(name = "帖子编号")
    private Long postId;

    /** 评论账号 */
    @Excel(name = "评论账号")
    private Long userAccount;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 评论日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishDate;

    /** 删除状态（0存在 2删除） */
    @Excel(name = "删除状态", readConverterExp = "0=存在,2=删除")
    private String delFlag;

    public void setCommentId(Long commentId) 
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }
    public void setPostId(Long postId) 
    {
        this.postId = postId;
    }

    public Long getPostId() 
    {
        return postId;
    }
    public void setUserAccount(Long userAccount) 
    {
        this.userAccount = userAccount;
    }

    public Long getUserAccount() 
    {
        return userAccount;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setPublishDate(Date publishDate)
    {
        this.publishDate = publishDate;
    }

    public Date getPublishDate() 
    {
        return publishDate;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("commentId", getCommentId())
            .append("postId", getPostId())
            .append("userAccount", getUserAccount())
            .append("content", getContent())
            .append("publishDate", getPublishDate())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
